import request from '@/utils/request'

export function getCode(query) {
    return request({
        url: 'api/login/getCode',
        method: 'get',
        params: query
    })
}
export function login(query) {
    return request({
        url: 'auth/user/login',
        method: 'post',
        data: query
    })
}

//医疗不良事件
export function addTreatment(query) {
  return request({
    url: 'adverse/treatment-event/addTreatment',
    method: 'post',
    params: query
  })
}
